package com.example.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Table(name = "easy_provider")
@ColumnWidth(value = 45)
@HeadRowHeight(value = 30)
@ContentRowHeight(value = 20)
@Data
public class Provider implements Serializable {
    private final static Long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    @ExcelProperty(value = "供应商ID")
    private Long id;

    @ExcelProperty(value = "供应商编号")
    @Column(name = "proCode")
    private String proCode;

    @ExcelProperty(value = "供应商名字")
    @Column(name = "proName")
    private String proName;

    @ExcelProperty(value = "供应商产品")
    @Column(name = "proDesc")
    private String proDesc;

    @ExcelProperty(value = "供应商负责人")
    @Column(name = "proContact")
    private String proContact;
}
